#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
/*void my_strcpy(char* a1, char* a2) {
	char* arr1 = a1;
	char* arr2 = a2;
	while (*arr2 != '\0') {
		*arr1++ = *arr2++;
	}
	*arr1 = *arr2;
}


int main() {
	char arr1[20] = "xxxxxxxxxxx";
	char arr2[] = "mao jai rui";
	my_strcpy(arr1, arr2);
	printf("%s\n", arr1);

}*/
/*size_t my_strlen(char* arr) {
	char* len = arr;
	while (*arr != '\0') {
		arr++;
	}
	return arr - len;
}*/
/*ize_t my_strlen(char* arr) {
	if (*arr == '\0')
		return 0;
	else
		return 1 + my_strlen(arr + 1);
}
int main() {
	char arr[] = "asdadaffafs";
	size_t len=  my_strlen(arr);
	printf("%zd", len);

}*/
size_t my_strlen(char* arr) {
	if (*arr == '\0')
		return 0;
	else
		return 1 + my_strlen(arr + 1);
}
int main() {
	char arr[] = "asdadaffafs";
	size_t len = my_strlen(arr);
	printf("%zd", len);

}